package Project;
import java.io.*;
public class HW5 {
	public static void main(String[] args){
		int sum =1;
		for(int i=1; i<=10; i++)
		{
			System.out.print(i +"! = " );
			for(int j=1; j<=i; j++){
				sum *= j;		
			}
			System.out.println(sum);
			sum = 1;
		}
	}

}
